package com.robinmouren.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;
import java.io.Serializable;

import lombok.*;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author Robinmouren
 * @since 2024-05-23
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class SplitRoute implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private Long id;

    /**
     * 路线对应订单id
     */
    private Long orderId;

    /**
     * 负责人id
     */
    private Long userId;


    /**
     * 排序
     */
    private int sort;

    /**
     * 网点
     */
    private String outlets;

    /**
     * 网点详细地址
     */
    private String address;

    /**
     * 计划到达时间
     */
    private LocalDateTime plannedTime;

    /**
     * 实际到达时间
     */
    private LocalDateTime actualTime;

    /**
     * 路线创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    /**
     * 创建人
     */
    @TableField(fill = FieldFill.INSERT)
    private Long createUser;


}
